home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.3
/
Video Toaster v4.3.iso
/
3.1
/
toasterall
/
arexx_examples
/
toastsmf.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-06-06
|
2KB
|
72 lines
/* Query and Set Effects Speeds */
/* By Arnie Cachelin © 1992 NewTek Inc. */
OPTIONS RESULTS
TOASTERLIB="ToasterARexx.port" /* Name of the Toaster function host port */
IF ~SHOW('Libraries',TOASTERLIB) THEN
IF ~ADDLIB(TOASTERLIB , 0) THEN x=Bummer(" Me No Find Toaster Library!")
say "Dissolve rate? (fields)"
pull r
Switcher(TOSW)
Switcher(MDV1)
Switcher(PDV2)
do while r~=0
Switcher(TAKE)
Call CustDissolve(r)
Switcher(TOWB)
say "Dissolve rate?"
pull r
Switcher(TOSW)
end
Switcher(TOWB)
n=LogEffects()
do i=1 to n
say effect.i sspeed.i mspeed.i fspeed.i vspeed.i
end
exit
/* This routine will find and store all the effects speeds as well as making
an easy way to convert from effect numbers (returned by STAT,GRID) to the
bank/row/column notation used to select the effects
*/
LogEffects:
i=0
do Grid=1 to 9
Grd=translate(Grid,"ABCDEFGHI","123456789")
Switcher(CHGR,Grd)
Do Row=1 to 4
Do Col=1 to 8
effect.i=Grd||Row||Col
if Switcher(CKGD,effect.i) then Do
sspeed.i=Switcher(RDGD,effect.i,'S')
mspeed.i=Switcher(RDGD,effect.i,'M')
fspeed.i=Switcher(RDGD,effect.i,'F')
vspeed.i=Switcher(RDGD,effect.i,'V')
end
i=i+1
end col
end row
end grid
return i-1
CustDissolve: Procedure /* execute custom speed dissolve, specify duration in fields */
arg rate
if ~Switcher(CKGD,A48) then effect='A11' /* GetSmall project */
else do
effect='A48'
call Switcher(GRID,'A11') /* select other effect */
end
Switcher(WTGD,'A48','V',rate) /* Change Variable duration */
Switcher(GRID,effect)
Switcher(SVAR) /* Set to variable speed (altered) */
Switcher(AUTO)
return